import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Center from '@/components/Center'
import Help from '@/components/Help'
import Query from '@/components/Query'
Vue.use(Router);


export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home',
      title:'新建订单'
    },
    {
      path: '/home',
      component: Home,
      title:'新建订单'
    },
    {
      path: '/center',
      component: Center,
      title:'个人中心'
    },
    {
      path: '/help',
      component: Help,
      title:'使用指南'
    },
    {
      path: '/query',
      component: Query,
      title:'订单查询'
    }
  ]
})
